import resource from 'vueResourceConfig'
export default {
  loadUserData () {
    let _data = {
      id: '123456',
      name: 'Emily',
      avator: '',
      level: '1', // assume 1: gold, 2: silver, 3: bronze
      height: '150cm',
      weight: '50kg',
      bmi: '21.2',
      local: '嘉定店',
      score: '600',
      validDays: '3',
      achievements: {
        useIODays: 7,
        completedCourses: 12,
        exerciseTime: 5.8,
        calories: 980
      }
    };

    return Promise.resolve(_data);
  },

  savePhotoToGymServer (serverId, userId) {
    var postData = { _token: window._token };
    console.log('url: ', `/my/change-avator/${userId}/${serverId}`);
    console.log('data', postData)
    return Promise.resolve();
    // return Promise.reject();
  }
}
